home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / delicious.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  2KB  |  74 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="delicious"
  3.          version="$Id: delicious.xml 13478 2007-07-19 19:45:26Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <strings>
  7.     <string name="domains" value="icio.us"/>
  8.   </strings>
  9.  
  10.   <sessioncookies>
  11.     <cookie host=".del.icio.us" name="_user" path="/"/>
  12.     <cookie host=".del.icio.us" name="notifications_seen" path="/"/>
  13.     <cookie host=".del.icio.us" name="_accept_s_cookies" path="/"/>
  14.   </sessioncookies>
  15.  
  16.   <detect type="login">
  17.     <url><host equals="secure.del.icio.us"/></url>
  18.     <form>
  19.       <xpath name="username" extract="value">
  20.         <![CDATA[[@action="https://secure.del.icio.us/login"]/input[@id="user_name"]]]>
  21.       </xpath>
  22.       <xpath name="password" extract="value">
  23.         <![CDATA[/input[@id="password"]]]>
  24.       </xpath>
  25.     </form>
  26.   </detect>
  27.  
  28.   <detect type="signup">
  29.     <url>
  30.       <host equals="secure.del.icio.us"/>
  31.       <path contains="/register"/>
  32.     </url>
  33.     <form>
  34.       <field tagname="input" name="user_name" extractas="username"/>
  35.       <field tagname="input" name="password2" type="password" extractas="password"/>
  36.     </form>
  37.   </detect>
  38.  
  39.   <detect type="changepassword">
  40.     <url>
  41.       <host equals="secure.del.icio.us"/>
  42.       <path contains="/profile/changepw"/>
  43.     </url>
  44.     <document>
  45.       <regexp re1="username">
  46.         <![CDATA[/<title>del.icio.us\/settings\/(.*)\/profile\/changepw<\/title>/]]>
  47.       </regexp>
  48.     </document>
  49.     <form>
  50.       <xpath name="password" extract="value">
  51.         <![CDATA[//input[@type="password"][@name="newpassword2"]]]>
  52.       </xpath>
  53.     </form>
  54.   </detect>
  55.  
  56.   <detect type="loggedin">
  57.     <url domain="del.icio.us"/>
  58.     <xpath><![CDATA[//div[@id="header"]//p[@id="header-auth-links"]/text()[contains(.,"logged in as")]]]></xpath>
  59.   </detect>
  60.  
  61.   <detect type="loggedout">
  62.     <url domain="del.icio.us"/>
  63.     <xpath><![CDATA[//div[@id="header"]//p[@id="header-auth-links"]/a//text()[contains(.,"login")]]]></xpath>
  64.   </detect>
  65.  
  66.   <detect type="accountinfo">
  67.     <url domain="del.icio.us"/>
  68.     <regexp re1="accountid">
  69.       <![CDATA[/logged in as <strong>(.+?)</]]>
  70.     </regexp>
  71.   </detect>
  72.  
  73. </service>
  74.